<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: TIM_TimeBaseInitTypeDef Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">TIM_TimeBaseInitTypeDef Struct Reference<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a> &raquo; <a class="el" href="group___t_i_m.html">TIM</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>TIM Time Base Init structure definition.  
 <a href="struct_t_i_m___time_base_init_type_def.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="wb32l003__tim_8h_source.html">wb32l003_tim.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a30c6857997a4ddd7d3d66fd3a8907c37"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_t_i_m___time_base_init_type_def.html#a30c6857997a4ddd7d3d66fd3a8907c37">TIM_Prescaler</a></td></tr>
<tr class="separator:a30c6857997a4ddd7d3d66fd3a8907c37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfc97c66bfce30e74ce779ab04c156e9"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_t_i_m___time_base_init_type_def.html#adfc97c66bfce30e74ce779ab04c156e9">TIM_CounterMode</a></td></tr>
<tr class="separator:adfc97c66bfce30e74ce779ab04c156e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a169131a7437571cef140fd53a82cd0fc"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_t_i_m___time_base_init_type_def.html#a169131a7437571cef140fd53a82cd0fc">TIM_Period</a></td></tr>
<tr class="separator:a169131a7437571cef140fd53a82cd0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2142bf86a7116c8c98ab015d5606fc98"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_t_i_m___time_base_init_type_def.html#a2142bf86a7116c8c98ab015d5606fc98">TIM_ClockDivision</a></td></tr>
<tr class="separator:a2142bf86a7116c8c98ab015d5606fc98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a121b27ced71ccb2c85f1d9825ae8d496"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_t_i_m___time_base_init_type_def.html#a121b27ced71ccb2c85f1d9825ae8d496">TIM_RepetitionCounter</a></td></tr>
<tr class="separator:a121b27ced71ccb2c85f1d9825ae8d496"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>TIM Time Base Init structure definition. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a2142bf86a7116c8c98ab015d5606fc98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2142bf86a7116c8c98ab015d5606fc98">&#9670;&nbsp;</a></span>TIM_ClockDivision</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TIM_ClockDivision</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the clock division. This parameter can be a value of <a class="el" href="group___t_i_m___clock___division___c_k_d.html">TIM_Clock_Division_CKD</a> </p>

</div>
</div>
<a id="adfc97c66bfce30e74ce779ab04c156e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfc97c66bfce30e74ce779ab04c156e9">&#9670;&nbsp;</a></span>TIM_CounterMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TIM_CounterMode</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the counter mode. This parameter can be a value of <a class="el" href="group___t_i_m___counter___mode.html">TIM_Counter_Mode</a> </p>

</div>
</div>
<a id="a169131a7437571cef140fd53a82cd0fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a169131a7437571cef140fd53a82cd0fc">&#9670;&nbsp;</a></span>TIM_Period</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TIM_Period</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the period value to be loaded into the active Auto-Reload Register at the next update event. This parameter must be a number between 0x0000 and 0xFFFF. </p>

</div>
</div>
<a id="a30c6857997a4ddd7d3d66fd3a8907c37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30c6857997a4ddd7d3d66fd3a8907c37">&#9670;&nbsp;</a></span>TIM_Prescaler</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TIM_Prescaler</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the prescaler value used to divide the TIM clock. This parameter can be a number between 0x0000 and 0xFFFF </p>

</div>
</div>
<a id="a121b27ced71ccb2c85f1d9825ae8d496"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a121b27ced71ccb2c85f1d9825ae8d496">&#9670;&nbsp;</a></span>TIM_RepetitionCounter</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t TIM_RepetitionCounter</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Specifies the repetition counter value. Each time the RCR downcounter reaches zero, an update event is generated and counting restarts from the RCR value (N). This means in PWM mode that (N+1) corresponds to:</p><ul>
<li>the number of PWM periods in edge-aligned mode</li>
<li>the number of half PWM period in center-aligned mode This parameter must be a number between 0x00 and 0xFF. <dl class="section note"><dt>Note</dt><dd>This parameter is valid only for TIM1. </dd></dl>
</li>
</ul>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="wb32l003__tim_8h_source.html">wb32l003_tim.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
